<template>
	<h1>Child</h1>
	<p>{{ age }}</p>
</template>

<script setup>
import { defineProps, defineEmits } from "vue";

// 声明接受props
defineProps({
	age: Number,
});

const emit = defineEmits(["setAge"]);

emit("setAge");
</script>

<style></style>
